package com.weixing.mall.provider.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.weixing.mall.provider.mapper.AccessLogMapper;
import com.weixing.mall.provider.model.domain.AccessLog;
import com.weixing.mall.provider.model.query.SysAccessLogQuery;
import com.weixing.mall.provider.model.vo.sys.SysAccessLogVo;
import com.weixing.mall.provider.service.IAccessLogService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 系统模块-访问日志表 服务实现类
 * </p>
 *
 * @author Small
 * @since 2019-11-18
 */
@Service
public class AccessLogServiceImpl extends ServiceImpl<AccessLogMapper, AccessLog> implements IAccessLogService {

    @Override
    public IPage<AccessLog> selectOfPage(Page initMpPage, SysAccessLogQuery sysAccessLogQuery) {
        return baseMapper.selectOfPage(initMpPage,sysAccessLogQuery);
    }

    @Override
    public void batchDelete(SysAccessLogQuery sysAccessLogQuery) {
        baseMapper.batchDelete(sysAccessLogQuery);
    }

    @Override
    public List<SysAccessLogVo> selectLogVoAll(SysAccessLogQuery query) {

        return baseMapper.selectLogVoAll(query);
    }


}
